package org.example.util;

import cn.hutool.cache.impl.FIFOCache;

public class LocalCacheUtil {
    static FIFOCache<String, Object>  fifoCache = new FIFOCache(1000);

    public static void putCache(String key, Object value, int timeOut) {
        fifoCache.put(key, value, timeOut);
    }

    public static void putCache(String key, Object value) {
        fifoCache.put(key, value);
    }

    public static Object getValue(String key){
        return fifoCache.get(key);
    }
}
